package com.cll.learn.stage10.example2;

import java.util.List;

/**
 * 描述信息:
 *
 * @author CLL
 * @version 1.0
 * @date 2021/5/14 9:27
 */
public class Result {

    /**
     * 当前的最优解
     */
    private int capacity;

    /**
     * 当前最优解对应的金矿资源序号
     */
    private List<GoldResource> selectGoldResource;

    public Result() {
    }

    public Result(int capacity, List<GoldResource> selectGoldResource) {
        this.capacity = capacity;
        this.selectGoldResource = selectGoldResource;
    }

    @Override
    public String toString() {
        return "Result{" +
                "capacity=" + capacity +
                ", selectGoldResource=" + selectGoldResource +
                '}';
    }

    public int getCapacity() {
        return capacity;
    }

    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }

    public List<GoldResource> getSelectGoldResource() {
        return selectGoldResource;
    }

    public void setSelectGoldResource(List<GoldResource> selectGoldResource) {
        this.selectGoldResource = selectGoldResource;
    }
}
